package tspda

import glory.xxd.Utils
import glory.xxd.XmlUtils
import tsCIM.modelForInterface.Header
import tsCIM.modelForInterface.RequestModel
import tsCIM.modelForInterface.Return

class TestController {

    def index() {
        def json = """
{
\t"EQPID": "DB-447",
\t"USERNAME": "10014284",
\t"DEFECTLIST": {
\t\t"PROCESSLIST": {
\t\t\t"PROCESSINFO": [{
\t\t\t\t"DEFECTWHYLIST": {
\t\t\t\t\t"DEFECT": [{
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "包装方式错误"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "标签错误"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "铝箔袋封口不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "装箱错误"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "兰膜错误"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "标签位置贴错"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "包装材料不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "入库单错误"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "抽测不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封裂纹\\/开裂"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "跑bin"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "良率低"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "样管异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "编带外观不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "编带拉力不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "编带空料"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "前后空不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "编带方向错"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "编带材料错误"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "管脚不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "合编错误"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "烧伤\\/击穿"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "测试程序错误"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "测试混料"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "o\\/S不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "数量不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体缺损\\/缺角"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "露底材"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "用错模具"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "毛刺"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "压伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "断脚"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "切偏"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "连筋"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "反切"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "管脚沾污"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "露底材"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "锡丝\\/片"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "装反"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体沾污"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体缺损\\/缺角"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体划伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "打叉产品"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "用错料管"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "用错管塞"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "框架变形"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体裂纹\\/开裂"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "废胶"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "框架断裂"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "伤筋"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "伤管脚"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "框架变形及拉断"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "伤筋"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "缺损或破裂"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "印章错误"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "重印"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "未打印"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "印章方向错误"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "断字"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "印章偏移"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体划伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "印章变形"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "印章倾斜"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体烧伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "印字深度超标"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "框架变形"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体沾污"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "字体粗细不均"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "镀层污染"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "胶体沾污"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "胶体缺损"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "露底材"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "框架变形"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "易焊性不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体裂纹\\/开裂"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体划伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "锡丝\\/片"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "冲\\/交丝"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塌丝"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体偏心"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体错位"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "胶体未满"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "表面气泡"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "框架变形"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体缺损\\/缺角"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "溢料"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体沾污"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "断丝"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "压边"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塑封体划伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "气孔"
\t\t\t\t\t}]
\t\t\t\t},
\t\t\t\t"PROCESSNAME": "塑封"
\t\t\t}, {
\t\t\t\t"DEFECTWHYLIST": {
\t\t\t\t\t"DEFECT": [{
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "框架变形"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "装片不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "球形不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "焊球偏点"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "铝挤异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "外焊点不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "弧度不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塌丝"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "断丝"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "颈部断丝"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "二焊点断丝"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "焊丝受损"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "不粘"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "尾丝\\/残丝"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "废丝"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "重复焊线"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "未\\/漏焊线"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "压区受损"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "推力不满足规格"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "拉力不满足规格"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "铝垫裂纹"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "铝垫脱落"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "颈部\\/鱼尾受损"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "合金面积（IMC）不足"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "压区铝残留厚度不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "焊球氧化"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "焊球脱落"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "二焊点不粘"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "引线框架重叠"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "清洗超时"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "品管\\/工程试验"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "劈刀不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "整盒未布线"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "混料"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "报废数不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "盒\\/框号不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "产品掉落"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "布线错误"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "崩单晶"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "镀银层不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "框架氧化"
\t\t\t\t\t}]
\t\t\t\t},
\t\t\t\t"PROCESSNAME": "压焊"
\t\t\t}, {
\t\t\t\t"DEFECTWHYLIST": {
\t\t\t\t\t"DEFECT": [{
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "胶量异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "框架尺寸异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "框架变形"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "镀银层不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "用错粘片胶"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "用错框架"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "引线框架变色"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "烘烤污染"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "粘片胶桥接"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "粘片胶厚度超标"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "MAP取片错误"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片沾污"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片划伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "崩单晶"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "引线框架重叠"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "盒\\/框号不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "产品掉落"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "报废数不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "混料"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "银浆扩散"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "Uplook报警"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "missing die"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "粘片胶沾污"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "边缘片"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "翘片"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片粘歪"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "粘反"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片划伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "顶针痕迹"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "推晶异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "粘片胶空洞"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "遗漏好芯片"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "掉芯"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "粘多余芯片"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "少粘芯片"
\t\t\t\t\t}]
\t\t\t\t},
\t\t\t\t"PROCESSNAME": "上芯"
\t\t\t}, {
\t\t\t\t"DEFECTWHYLIST": {
\t\t\t\t\t"DEFECT": [{
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "墨点溅散"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片划伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "墨点脱落"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "没有墨点"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "墨点直径异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "晶圆裂纹"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "崩单晶"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片裂纹"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "产品掉落"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "蓝膜异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "划偏"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片沾污"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片划伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "激光开槽异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "胶膜脱落"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "崩单晶\\/崩边"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片裂纹"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片脱落"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "晶圆裂片"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "墨点中心偏移"
\t\t\t\t\t}]
\t\t\t\t},
\t\t\t\t"PROCESSNAME": "减划"
\t\t\t}, {
\t\t\t\t"DEFECTWHYLIST": {
\t\t\t\t\t"DEFECT": [{
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "数量不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "盒\\/框号不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "混料隐患"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "指令不符\\/清"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "参数不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "停水\\/电\\/气"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "未按规范要求作业"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "机型不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "SPC监控异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "压焊图不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "制具异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "设备异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "信息不符\\/清"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "重条带"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "产品掉地"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "材料异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "品管工程实验"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "品管、工程试验"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "框架变形、重叠"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "塌丝"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "镀层不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "制具异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "框架变形"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "胶体沾污"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "歪脚"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "胶体裂纹\\/开裂"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "离\\/分层"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "缺损\\/缺角"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "胶体划伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "露铜"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "溢料\\/胶"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "管脚沾污"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "胶体空洞"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片分层"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "崩单晶"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片划伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "芯片沾污"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "打叉数不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "打叉产品"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "数量不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "文件不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "参数不符"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "SPC监控异常"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "温湿度超标"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "停水\\/电\\/气"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "未按规范作业"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "混批"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "混批隐患"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "银浆扩散"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "镀层不良"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "蹭伤，划伤，压伤"
\t\t\t\t\t}, {
\t\t\t\t\t\t"COUNT": "0",
\t\t\t\t\t\t"NAME": "文件不符"
\t\t\t\t\t}]
\t\t\t\t},
\t\t\t\t"PROCESSNAME": "通用"
\t\t\t}]
\t\t}
\t}
}

"""
        def body = Utils.parseStr2Json(json)

        Header header = new Header(TRANSACTIONID: Utils.getUUID(), MESSAGENAME: "PDADefectWhyCountRequest", MACHINENAME: 'MACHINENAME')
        Return aReturn = new Return()
        RequestModel requestModel = new RequestModel(header: header, body: body, aReturn: aReturn)
//        print requestModel.getClass().toString()

        def result = requestModel.getRequestModel()
        def sendXml = XmlUtils.json2xml(result)


        render Utils.getFormatString(sendXml)
    }
}
